package com.lhhu.demo.mapper;

import com.lhhu.demo.bean.Logs;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Auther 虎
 * @Data 2021/4/9 17:53
 * @Version 1.0
 */
@Repository
public interface LogMapper {
    List<Logs> getAllLogs();
    int addOneLog(Logs logs);
    List<Logs> getLogsByName(String operator);
    List<Logs> getLogsByTime(@Param("begindate") String begindate, @Param("enddate") String enddate);
    List<Logs> getLogsByNameAndTime(@Param("operator") String operator,@Param("begindate") String begindate,@Param("enddate") String enddate);
}
